package test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.peanut.common.pojo.Order;

public class test {
		public static void main(String[] args) throws Exception {
			
			SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			Date date=new Date();
			System.out.println(date);
			Date now = df.parse(df.format(date));
			System.out.println(now);
			long e=now.getTime();
			Date date1=new Date(e);
			System.out.println(e);

		}
}
